﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<GIFT_SHOP_MVC.Models.User>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Profile
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Profile</h2>

    <% using (Html.BeginForm("Profile","Account")) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Fields</legend>
            
            <table cellspacing="10" style="width: 100%">
                <tr>
                    <td align="right">
                        <%: Html.LabelFor(model => model.HoTen) %></td>
                    <td>
                        <%: Html.TextBoxFor(model => model.HoTen) %>
                        <b style="color:Red;"><%: Html.ValidationMessageFor(model => model.HoTen) %></b></td>
                </tr>
                <tr>
                    <td align="right">
                        <%: Html.LabelFor(model => model.UserName) %></td>
                    <td>
                        <%: Html.TextBoxFor(model => model.UserName) %>
                        <b style="color:Red;"><%: Html.ValidationMessageFor(model => model.UserName) %>
                        <% if (Session["checkuser"]!=null && (bool)Session["checkuser"] == false) Response.Write("UserName already exists !"); %></b></td>
                </tr>
                <tr>
                    <td align="right">
                        <%: Html.LabelFor(model => model.DiaChi) %></td>
                    <td>
                        <%: Html.TextBoxFor(model => model.DiaChi) %>
                        <b style="color:Red;"><%: Html.ValidationMessageFor(model => model.DiaChi) %></b></td>
                </tr>
                <tr>
                    <td align="right">
                        <%: Html.LabelFor(model => model.DienThoai) %></td>
                    <td>
                        <%: Html.TextBoxFor(model => model.DienThoai) %>
                        <b style="color:Red;"><%: Html.ValidationMessageFor(model => model.DienThoai) %></b></td>
                </tr>
                <tr>
                    <td align="right">
                        <%: Html.HiddenFor(model => model.MaUser) %></td>
                    <td>
                        <input type="submit" id="submit_btn" value="Save" /></td>
                </tr>
            </table>
        </fieldset>
    <% } %>
</asp:Content>

